<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-05-15 13:54:02
         compiled from "C:\wamp\www\project.adm.uppii\admin\aplications\views\tabs\tabedit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:47035550e8ea06aa54-57966403%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0c5f12ae8c62102eb2e3361e54d06187e1672ca3' => 
    array (
      0 => 'C:\\wamp\\www\\project.adm.uppii\\admin\\aplications\\views\\tabs\\tabedit.tpl',
      1 => 1431708841,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '47035550e8ea06aa54-57966403',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5550e8ea06e8d7_34842007',
  'variables' => 
  array (
    'editPostTab' => 0,
    'linkRoute' => 0,
    'listarPostTab' => 0,
    'tabsTitle' => 0,
    'id' => 0,
    'title' => 0,
    'tabsContent' => 0,
    'content' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5550e8ea06e8d7_34842007')) {function content_5550e8ea06e8d7_34842007($_smarty_tpl) {?><div class='row'>
    <div class='col-md-6'>
        <section class='widget'>
            <header class='widget-header clearfix bg-primary'>
                <div class="pull-left">
                    <h4>Conteudo em Aba/Ancora</h4>
                </div>
            </header>
            <div class='widget-content'>
                
                
                <form id='frm_add_tabs' action="<?php if (is_null($_smarty_tpl->tpl_vars['editPostTab']->value)) {
echo $_smarty_tpl->tpl_vars['linkRoute']->value;?>
/newpostabs<?php } else {
echo $_smarty_tpl->tpl_vars['linkRoute']->value;?>
/editpost/<?php echo $_smarty_tpl->tpl_vars['editPostTab']->value[0]->id;
}?>" method="post">
                    <input type="hidden" name='id_tabs' id='id_tabs' value='<?php echo $_GET['id'];?>
' />
                    <div class='form-group'>
                        <label for='nome_tabs'>Titulo</label>
                        <input type="text" name='nome_tabs' id='nome_tabs' class='form-control' value="<?php if (!is_null($_smarty_tpl->tpl_vars['editPostTab']->value)) {
echo $_smarty_tpl->tpl_vars['editPostTab']->value[0]->nome_tabs;
}?>" />
                    </div>

                    <div class='form-group'>
                        <div class='btn-group'>
                            <a href='javascript:;' class='btn btn-default'>
                                <i class='el el-picture'></i>
                                Adicionar imagem ao sistema
                            </a>
                        </div>
                        <!--editor ckeditor plugin-->
                        <textarea id='conteudo_tabs' name='conteudo_tabs'><?php if (!is_null($_smarty_tpl->tpl_vars['editPostTab']->value)) {
echo $_smarty_tpl->tpl_vars['editPostTab']->value[0]->conteudo_tabs;
}?></textarea>
                    </div>

                    <div>
                        <button type='submit' class='btn btn-success'>Salvar</button>
                        <?php if (!is_null($_smarty_tpl->tpl_vars['editPostTab']->value)) {?>
                            <a class='btn btn-danger' href='<?php echo $_smarty_tpl->tpl_vars['linkRoute']->value;?>
/edit/<?php echo $_GET['id'];?>
'>Cancelar edi&ccedil;&atilde;o</a>
                        <?php }?>
                    </div>
                </form>
            </div>

        </section>
    </div>

    <!--Preview-->
    <div class='col-md-6'>
        <section class='widget'>
            <header class='widget-header clearfix bg-primary'>
                <div class='pull-left'>
                    <h4>Preview</h4>
                </div>
                <div class='pull-right'>
                    <a style='display:none;' class='btn btn-default' id='btn_tabpost_edit' data-tab_id_main="<?php echo $_GET['id'];?>
"> 
                        <i class='el el-edit'></i>
                        Editar conteudo selecionado
                    </a>
                </div>
            </header>
            <div class='widget-content'>               
                <?php if ($_smarty_tpl->tpl_vars['listarPostTab']->value) {?>
                    <div id='tabs_preview'>
                        <ul class='resp-tabs-list hor_1'>
                        <?php  $_smarty_tpl->tpl_vars['title'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['title']->_loop = false;
 $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['tabsTitle']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['title']->key => $_smarty_tpl->tpl_vars['title']->value) {
$_smarty_tpl->tpl_vars['title']->_loop = true;
 $_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars['title']->key;
?>
                            <li data-id="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
">
                                <?php echo $_smarty_tpl->tpl_vars['title']->value;?>

                                <a href='javascript:;' class='text-danger deltabs' rel='<?php echo $_GET['id'];?>
' data-id='<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
' data-table='cms_tab_post'>
                                    <i class='fa fa-times-circle'></i>
                                </a>
                            </li>
                        <?php } ?>
                        </ul>
                        <div class='resp-tabs-container hor_1'>
                        <?php  $_smarty_tpl->tpl_vars['content'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['content']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['tabsContent']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['content']->key => $_smarty_tpl->tpl_vars['content']->value) {
$_smarty_tpl->tpl_vars['content']->_loop = true;
?>
                            <div><?php echo $_smarty_tpl->tpl_vars['content']->value;?>
</div>
                        <?php } ?>
                        </div>
                    </div>
                <?php }?>
           </div>
        </section>
    </div>
</div>
<?php echo '<script'; ?>
 type="text/javascript">
    //tabs elements
    
<?php echo '</script'; ?>
><?php }} ?>
